{template "header.html"}
<div class="note note-danger">
    <p>同步获取百度统计站点列表</p>
</div>


<div class="table-scrollable">
    <table class="table table-striped table-bordered table-hover table-checkable dataTable">
        <thead>
        <tr class="heading">
            <th width="140">应用ID</th>
            <th width="280">网站域名</th>
            <th width="80">状态</th>
            <th></th>
        </tr>
        </thead>
        <tbody id="bdtj">
        <tr class="heading">
            <td>--</td>
            <td>--</th>
            <td>--</th>
            <td>--</td>
        </tr>
        </tbody>
    </table>
</div>

<div class="note note-danger" id="bdtj_error" style="display: none">
    <p id="bdtj_value"></p>
</div>

<script type="text/javascript">

    $(function () {
        $.ajax({
            type: "GET",
            dataType: "json",
            url: "{dr_url('bdtj/home/site_index')}",
            success: function(json) {
                if (json.code == 0) {
                    dr_tips(0, json.msg);
                    $('#bdtj_error').show();
                    $('#bdtj_value').html(json.msg);
                } else {
                    $('#bdtj').html(json.msg);
                }
            },
            error: function(HttpRequest, ajaxOptions, thrownError) {
                dr_ajax_alert_error(HttpRequest, ajaxOptions, thrownError)
            }
        });
    });
</script>

{template "footer.html"}